/*
 * DeploymentSystem.h
 *
 *  Created on: Jan 20, 2011
 *      Author: Joey Vignato
 */

#ifndef DEPLOYER_H
#define DEPLOYER_H

#include "KHSJoystick.h"
#include "Relay.h"
#include "DigitalInput.h"

class DeploymentSystem{

public:
	DeploymentSystem();
	~DeploymentSystem();

	void deploy();
	static int callDeployTask(void*);
	int deployTask();
	void retract();
	//bool isDeployed();
	//bool isDeploying();
	void stop();

private:
	Relay m_deployRelay; //Purpose: Runs the motor that swings out the deployer's arm.
	DigitalInput m_deployedSensor;//Purpose: Tells when the deployer has deployed the minibot,
								  //so the motor can stop running.
	//bool m_deployed;
	//bool m_deploying;
};
#endif
